const { Sequelize, DataTypes } = require("sequelize");
const sequelize = new Sequelize("yzczb", "root", "mysql_cswynw", {
  host: "120.27.240.51",
  port: 33306,
  dialect: "mysql",
});
// 时间戳 创建的时间戳 修改的时间戳
const RoomGroup = sequelize.define(
  "RoomGroup",
  {
    id: {
      type: DataTypes.BIGINT,
      primaryKey: true,
    },
    group_name: {
      type: DataTypes.STRING,
    },
  },
  {
    tableName: "room_group",
    timestamps: false,
  }
);

RoomGroup.findAll().then((res) => {
  console.log(res);
});
